aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/events/[...id].astro
diff options
context:
space:
mode:
authornolawz <amananudhiu@gmail.com>2026-03-03 04:16:25 +0530
committernolawz <amananudhiu@gmail.com>2026-03-03 04:16:25 +0530
commitb6d2a052bd9db4dd8f687f0e8084ff0278d4c9d6 (patch)
tree93f147cbb01d0798ebc4b2de0ea7cce306ebaa10 /src/pages/events/[...id].astro
parent45026eee4c93bbbe6141dd23a664abe6e9ff3ca2 (diff)
Fixed icons for events and also breadcrumb in individual event page
Diffstat (limited to 'src/pages/events/[...id].astro')
-rw-r--r--src/pages/events/[...id].astro18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/pages/events/[...id].astro b/src/pages/events/[...id].astro
index 44d8ec4..590a5c6 100644
--- a/src/pages/events/[...id].astro
+++ b/src/pages/events/[...id].astro
@@ -25,11 +25,11 @@ export async function getStaticPaths() {
}
const event = Astro.props
-const currentPostId = Astro.params.id
-const navigation = await getAdjacentEvents(currentPostId)
+const currentEventId = Astro.params.id
+const navigation = await getAdjacentEvents(currentEventId)
const { Content, headings } = await render(event)
-const tocSections = await getTOCSections(currentPostId)
+const tocSections = await getTOCSections(currentEventId)
---
<Layout>
@@ -45,7 +45,15 @@ const tocSections = await getTOCSections(currentPostId)
>
<div class="col-start-2">
<Breadcrumbs
- items={[{ href: '/events', label: 'Events', icon: 'lucide:calendar' }]}
+ items={[
+ { href: '/events', label: 'Events', icon: 'lucide:calendar-days' },
+
+ {
+ href: `/events/${currentEventId}`,
+ label: event.data.title,
+ icon: 'lucide:calendar-check',
+ },
+ ]}
/>
</div>
@@ -100,7 +108,7 @@ const tocSections = await getTOCSections(currentPostId)
{
tocSections.length > 0 && (
- <TOCSidebar sections={tocSections} currentPostId={currentPostId} />
+ <TOCSidebar sections={tocSections} currentPostId={currentEventId} />
)
}